package com.galen.chapter2.repository;

import com.galen.chapter2.entity.Chapter2User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author GalenGao
 * @version Id: UserRepository.java, v 0.1 2022/2/24 12:18 上午 GalenGao Exp $$
 */
@Repository
public interface Chapter2UserRepository extends CrudRepository<Chapter2User, Long> {

    /**
     * 根据邮件与地址进行查询
     *
     * @param email   邮件
     * @param address 地址
     * @return User
     */
    Chapter2User findByEmailAndAddress(String email, String address);
}
